package com.stedu.mall.userservice.mapper;

import com.stedu.mall.common.bean.Addr;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddrMapper {
    //添加
    int insert(Addr addr);
    //删除
    int delete(Integer id);
    //修改
    int update(Addr addr);
    //条件查询
    List<Addr> selectByCondition(Addr condition);
    //id查询
    Addr selectById(Integer id);
    //用户id查询
    Addr selectByUserId(Integer id);

}
